<?php

	//$host = 'localhost';
	//$user = 'root';
	//$pass = '';
	//$db = 'arkmedia_mainbannau';
	//$db = 'arkmedia_munnau_database4';
	//mysql_connect($host, $user, $pass) or die('Cannot connect to Database');
	//mysql_select_db($db) or die('Database Not Found');
	if($_SERVER['SERVER_NAME']='dev.munnau.com'){
		$host = 'mysql303.db.sakura.ne.jp';
		$user = 'arkmedia';
		$pass = 'andrew12_arkmedia-corp_gbiz4';
	}else{
		$host = 'localhost';
		$user = 'root';
		$pass = '';
		}
	$db = 'arkmedia_mainbannau';
	$con = mysqli_connect($host,$user,$pass,$db);
	if(mysqli_connect_errno($con))
	{
		echo "Cannot connect to db :" . mysqli_connect_error();
		}
/*
$host='mysql303.db.sakura.ne.jp';
$user='arkmedia';
$pass='andrew12_arkmedia-corp_gbiz4';
$db='arkmedia_munnau_database4';
mysql_connect($host,$user,$pass) or die('Cannot connet to database');
mysql_select_db($db) or die('Database not found');
*/
?>